<?php

defined('BASEPATH') or die('forbidden');

/**
 * 鎺у埗鍣ㄥ熀绫�
 * @author  Karson
 * @name    controller.php
 * @since   2013-7-26 17:19:11
 */
class Controller {

    var $controllers = array();
    var $models = array();
    var $libraries = array();

    function __construct() {
        framework::instance('controller', $this);
        $this->load = new Load();
        $this->config = &framework::instance()->config;
        $this->view = new View();
        #var_dump(BASEPATH);
        #exit(0);
        #$this->act_cfg = new ActivityCfg();

		//if(is_null($this->memcahe))
        //{
		//	$this->memcahe = new p_memcahe();
		//	$this->memcahe->_init();
		//}
    }

    function index() {
        
    }

    function __call($name, $args) {
        throw new Exception("鏈壘鍒拌姹傜殑鎺у埗鍣ㄦ柟娉昜{$name}],鍙傛暟[" . implode(',', $args) . "]");
    }

}